<?php


namespace app\admin\validate;


class BannerValidate extends BaseValidate
{
    protected $rule = [
        'title' => 'require',
        'image' => 'require',
        'banner_seat_id' => 'require|isPositiveInteger',
    ];

    protected $message = [
        'title.require' => '请输入banner位名称',
        'image.require' => '请上传图片',
        'banner_seat_id.require' => '请选择banner位',
        'banner_seat_id.isPositiveInteger' => '请选择banner位',
    ];

    protected $scene = [
        'seat' => ['title'],
        'image' => ['image', 'banner_seat_id'],
    ];
}